package cn.stylefeng.guns.modular.system.entity;

import cn.hutool.core.date.DateTime;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName("app_user_cash_out")
public class CashOut {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("userId")
    private Integer userId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("dateTime")
    private Date dateTime;

    @TableField("money")
    private BigDecimal money;

    @TableField("status")
    private Integer status;

    @TableField("card")
    private String card;

    /**
     * 驳回理由
     */
    @TableField("rejectionGrounds")
    private String rejectionGrounds;

    /**
     * 驳回处理人
     */
    @TableField("dismissalHandlerId")
    private String dismissalHandlerId;

    /**
     * 处理时间
     */
    @TableField("processingTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date processingTime;
}
